#include <stdio.h>
int main(){
    int a = 0;
    int b = 0;
    int count = 0;
    scanf("%d %d",&a,&b);
    int c = a ^ b;
    for(int i = 0; i < 32; i++){
    	if(c&1 == 1)
    		count++;
    	c >>= 1;
	}
	printf("%d\n",count);
    return 0;
}
